//
//  LMCurrentUser.h
//  WelfareManager
//
//  Created by longmin on 17/2/18.
//  Copyright © 2017年 timtian. All rights reserved.
//

#import <Realm/Realm.h>

typedef enum {
    LMUserSexTypeMale = 1,  //男
    LMUserSexTypeFemale //女
}LMUserSexType;

typedef enum {
    LMUserAdminTypeAdmin = 1,   //团队管理员
    LMUserAdminTypeNormal       //普通员工
}LMUserAdminType;

typedef enum {
    LMUserStateNormal = 1,      //正常
    LMUserStateForbid           //禁用
}LMUserState;

@interface LMCurrentUser : RLMObject
//"team_user_id": "16",
//"team_id": "18",
//"user_id": "2",
//"team_nickname": "吕辉",
//"mobile": "13511111111",
//"email": "",
//"team_admin": "1",
//"position": "php",
//"department_id": "25",
//"state": "1",
//"last_hit_time": "1487559706",
//"modify_time": "1487560128",
//"create_time": "1484559759",
//"birthday": "1990-01-01",
//"head_pic": null,
//"sex": "1",
//"nick": null,
//"department_name": "2是的"
@property NSString *team_user_id;   //新主键
@property NSString *team_id;    //团队id , 有用
@property NSString *user_id;    //旧主键
@property NSString *team_nickname;   //团队昵称
@property NSString *mobile; //手机号   有用
@property NSString *nick;   //用户昵称
@property NSString *department_name;    //部门名称
@property LMUserAdminType team_admin; //1表示管理员 2表示普通员工
@property LMUserState state;  //用户状态state 1为正常 2表示禁用
@property NSString *position;   //职位
@property LMUserSexType sex;
@property NSString *birthday;
@property NSString *head_pic;

@end
